FROM python:3.8
MAINTAINER kk

RUN pip install flask -i https://pypi.tuna.tsinghua.edu.cn/simple
RUN pip install mysql-connector-python -i https://pypi.tuna.tsinghua.edu.cn/simple
RUN pip install flask-sqlalchemy -i https://pypi.tuna.tsinghua.edu.cn/simple
RUN pip install flask-cors -i https://pypi.tuna.tsinghua.edu.cn/simple

EXPOSE 5000


RUN mkdir -p /project/src
COPY . /project/src

WORKDIR /project/src
CMD [ "python", "./app.py" ]